  
{%- if layout.common-ext-js -%}
{%- for js in layout.common-ext-js -%}
  {%- include ext-js.html js=js -%}
{%- endfor -%}
{%- endif -%}
{%- if layout.common-js -%}
{%- for js in layout.common-js -%}
  {%- if js contains 'jquery' -%}
    <script>
      if (typeof jQuery == 'undefined') {
        document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
      }
    </script>
  {%- else -%}
    <script src="{{ js | relative_url }}?v{{ 'now' | date: '%Y%m%d%H%M%S' }}"></script>
  {%- endif -%}
{%- endfor -%}
{%- endif -%}
